package bcel.cardcenter.bconnex.recon.entity;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
@Entity
@Table(name="ATM_INFO")
public class AtmInfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name="ATM_ID")
	private String atmId;
	@Column(name="BRANCH_NAME")
	private String name;
	@Column(name="ATM_LOCATE")
	private String location;
	@Column(name="IP")
	private String ip;
	@Id
	@Column(name="BRANCH_ID")
	private String branchId;
	@Column(name="UNIT_ID")
	private String unitId;
	@Column(name="DEPRECIATED")
	private String depreciated;
	@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
	@JoinColumn(name="BRANCID")
	private List<BconTxn> bconTxn;
	public String getAtmId() {
		return atmId;
	}
	public void setAtmId(String atmId) {
		this.atmId = atmId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getBranchId() {
		return branchId;
	}
	public void setBranchId(String branchId) {
		this.branchId = branchId;
	}
	public String getUnitId() {
		return unitId;
	}
	public void setUnitId(String unitId) {
		this.unitId = unitId;
	}
	public String getDepreciated() {
		return depreciated;
	}
	public void setDepreciated(String depreciated) {
		this.depreciated = depreciated;
	}
	public List<BconTxn> getBconTxn() {
		return bconTxn;
	}
	public void setBconTxn(List<BconTxn> bconTxn) {
		this.bconTxn = bconTxn;
	}
}
